package com.cyj.dream.test.entity;

import lombok.Data;

/**
 * @Description: 用户用于测试
 * @BelongsProject: DreamChardonnay
 * @BelongsPackage: com.cyj.dream.test.entity
 * @Author: ChenYongJia
 * @CreateTime: 2021-09-15 15:32
 * @Email: chen87647213@163.com
 * @Version: 1.0
 */
@Data
public class UserInfo {

    /**
     * code、info可以统一定义一个类
     */
    private String code;
    private String info;

    private String name;
    private Integer age;
    private String address;

    public UserInfo() {

    }

    public UserInfo(String code, String info) {
        this.code = code;
        this.info = info;
    }

    public UserInfo(String name, Integer age, String address) {
        this.code = "0000";
        this.info = "success";
        this.name = name;
        this.age = age;
        this.address = address;
    }


}
